<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:composite="http://java.sun.com/jsf/composite"
	xmlns:p="http://primefaces.org/ui">

	<composite:interface>
		<composite:attribute name="labelCantidad" />
		<composite:attribute name="textCantidad" />
		
		<composite:attribute name="labelTamano" />
		<composite:attribute name="valueTamano" />
		<composite:attribute name="itemsValueTamano" />
		
		<composite:attribute name="labelPapel" />
		<composite:attribute name="valuePapel" />
		<composite:attribute name="itemsValuePapel" />
		
		<composite:attribute name="labelTintas" />
		<composite:attribute name="valueTintas" />
		<composite:attribute name="itemsValueTintas" />
		
		
		<composite:attribute name="labelPlastificado" />
		<composite:attribute name="valuePlastificado" />
		<composite:attribute name="itemsValuePlastificado" />
		
		<composite:attribute name="labelButton" />
		<composite:attribute name="buttonAction" method-signature="java.lang.String action()"/>
	</composite:interface>
	
	<composite:implementation>
		<h:panelGrid columns="2" cellpadding="5">
			#{cc.attrs.labelCantidad}
			<h:inputText value="#{cc.attrs.textCantidad}" />
			
			#{cc.attrs.labelTamano}
			<h:selectOneMenu value="#{cc.attrs.valueTamano}">
				<f:selectItems value="#{cc.attrs.itemsValueTamano}"
				var="t" itemLabel="#{t.descripcion}" itemValue="#{t.id}" />
			</h:selectOneMenu>
			
			#{cc.attrs.labelPapel}
			<h:selectOneMenu value="#{cc.attrs.valuePapel}">
				<f:selectItems value="#{cc.attrs.itemsValuePapel}" 
				var="t" itemLabel="#{t.descripcion}" itemValue="#{t.id}" />
			</h:selectOneMenu>
			
			#{cc.attrs.labelTintas}
			<h:selectOneMenu value="#{cc.attrs.valueTintas}">
				<f:selectItems value="#{cc.attrs.itemsValueTintas}" 
				var="t" itemLabel="#{t.descripcion}" itemValue="#{t.id}" />
			</h:selectOneMenu>
			
			#{cc.attrs.labelPlastificado}
			<h:selectOneMenu value="#{cc.attrs.valuePlastificado}">
				<f:selectItems value="#{cc.attrs.itemsValuePlastificado}" 
				var="t" itemLabel="#{t.descripcion}" itemValue="#{t.id}" />
			</h:selectOneMenu>
			<!-- 
			<h:panelGroup />								
			<p:commandButton action="#{cc.attrs.buttonAction}" value="#{cc.attrs.labelButton}"/>
			 -->
		</h:panelGrid>
	</composite:implementation>
</html>